package 集合框架;

import java.util.Collections;
import java.util.List;
import java.util.Vector;

public class TestCollections {
    public static void main(String[] args) {
        List<Integer> list = new Vector<>();
        list.add(22);
        list.add(11);
        list.add(99);
        Collections.sort(list);
       /* for (Integer i :
        list){
            System.out.println(i);
        }*/
    list.forEach(i-> System.out.println(i));

    }
}
